#include <iostream>
#include <vector>

using namespace std;

class Solution{
	public:
		int minsubArrayLen(int s,vector<int>& nums)
		{
			int result=INT32_MAX;
			int sum=0;
			int i=0;
			int subLength=0;
			for(int j=0;j<nums.size();j++)
			{
				sum+=nums[j];
				while(sum>=s)
				{
					subLength=(j-i+1);
					result=result<subLength?result:subLength;
				}
			}
			
			
			
			return result==INT32_MAX?0:result;
		}
};
int main()
{
	ios::sync_with_stdio(0),cin.tie(0),cout.tie(0);
	
	
	return 0;
}